package com.wejoy.video.middle.station.data.enums.dict;/**
 * @Author 张文杰
 * @PackageName video-middle-station
 * @Package com.wejoy.video.middle.station.data.enums.dict
 * @Date 2022/11/1 10:21 AM
 * @Version 1.0
 */

/**
 *
 * @BelongsProject: video-middle-station
 * @BelongsPackage: com.wejoy.video.middle.station.data.enums.dict
 * @Author: zhangwenjie
 * @CreateTime: 2022-11-01  10:21
 * @Description: 工单报警类型（业务场景）枚举
 * @Version: 1.0
 */
public enum EnumWorkAlarmType {
    SMOKE_DETECTION("smoke_detection", "吸烟报警"),
    FIRE_DETECTION("fire_detection", "火焰报警"),
    SMOG_DETECTION("smog_detection", "烟雾报警"),
    NON_WEAR_SAFETY_HELMET_DETECT("non_wear_safety_helmet_detect", "安全帽报警"),
    NO_WEARING_UNIFORM_DETECTION("no_wearing_uniform_detection", "工服穿戴报警"),
    PHONE_CALL_DETECTION("phone_call_detection", "打电话报警"),
    DETECT_OPERATIONAL_SAFETY_ZONE("detect_operational_safety_zone", "翻墙报警"),
    NO_TOUCH_BALL("no_touch_ball", "触摸静电球报警"),
    HUMAN_INTRUSION_DETECTION("human_intrusion_detection", "人员翻越，踩踏管道"),
//    OFF_DUTY_DETECTION("off_duty_detection", "人员离岗报警"),
//    HUMAN_GATHER("human_gather", "人员聚集报警"),
//    DETECT_ANTI_SLIP_MATS("detect_anti_slip_mats", "槽车防滑垫报警"),
//    DETECT_WARNING_SIGN("detect_warning_sign", "槽车警示牌报警"),
    HUMAN_FALL_DETECTION("human_fall_detection", "人员摔倒"),
    EXCAVATOR_DETECT("excavator_detect", "挖掘机检测"),
//    BUSINESS_HALL_WEAR_VIOLATION("business_hall_wear_violation", "违规穿戴报警"),
//    BUSINESS_HALL_NOT_OPEN("business_hall_not_open", "营业时间未开门报警"),
//    EXCAVATOR_DETECT("excavator_detect", "槽车装卸作业报警"),
//    FIRE_EXITS_OCCUPATION_DETECT("fire_exits_occupation_detect", "消防通道堵塞报警"),

    ;

    private String code;
    private String text;
    EnumWorkAlarmType(String code, String text) {
        this.code = code;
        this.text = text;
    }
    // 普通方法
    public static String getText(String code) {
        for (EnumWorkAlarmType c : EnumWorkAlarmType.values()) {
            if (c.getCode().equals(code)) {
                return c.text;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
